/ MacHack 1997
/ MacHack 1997.toast / Hacks / Hacks ’97 / Pick Me Up / source code / Control panel Source / MacHack 97 / Init / INIT code / init.c ![]() | next > |
MacBinary | 1997-06-27 | 1.6 KB | [TEXT/CWIE] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | Compact Compressed (Unix) (archive/compact) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
10% | dexvert | Jesper Olsen Module (music/jesperOlsen) | magic | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Thu Jun 26 23:41:32 1997, modified Thu Jun 26 23:41:32 1997, creator 'CWIE', type ASCII, 925 bytes "init.c" , at 0x41d 428 bytes resource | default (weak) | |
99% | file | data | default | |
49% | TrID | Macintosh plain text (MacBinary) | default | |
33% | TrID | TTComp archive compressed (bin-4K) | default (weak) | |
16% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [CWIE] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 69 6e 69 74 2e 63 | 00 00 00 00 00 00 00 00 |..init.c|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 03 9d 00 | 00 01 ac af d8 e6 ec af |........|........|
|00000060| d8 e6 ec 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 65 a5 00 00 |........|....e...|
|00000080| 2f 2a 0d 2a 2a 20 43 6f | 70 79 72 69 67 68 74 20 |/*.** Co|pyright |
|00000090| 28 43 29 20 31 39 39 37 | 20 50 72 65 74 74 79 20 |(C) 1997| Pretty |
|000000a0| 47 6f 6f 64 20 50 72 69 | 76 61 63 79 2c 20 49 6e |Good Pri|vacy, In|
|000000b0| 63 2e 0d 2a 2a 20 41 6c | 6c 20 72 69 67 68 74 73 |c..** Al|l rights|
|000000c0| 20 72 65 73 65 72 76 65 | 64 2e 0d 2a 2f 0d 0d 23 | reserve|d..*/..#|
|000000d0| 69 6e 63 6c 75 64 65 20 | 3c 54 79 70 65 73 2e 68 |include |<Types.h|
|000000e0| 3e 0d 0d 23 69 6e 63 6c | 75 64 65 20 3c 53 65 74 |>..#incl|ude <Set|
|000000f0| 75 70 41 34 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |upA4.h>.|#include|
|00000100| 20 3c 41 34 53 74 75 66 | 66 2e 68 3e 0d 0d 23 69 | <A4Stuf|f.h>..#i|
|00000110| 6e 63 6c 75 64 65 20 22 | 4a 69 6d 69 2e 68 22 0d |nclude "|Jimi.h".|
|00000120| 23 69 6e 63 6c 75 64 65 | 20 22 69 6e 69 74 2e 68 |#include| "init.h|
|00000130| 22 0d 0d 76 6f 69 64 20 | 6d 61 69 6e 28 76 6f 69 |"..void |main(voi|
|00000140| 64 29 0d 7b 0d 09 2f 2f | 20 52 65 6d 65 6d 62 65 |d).{..//| Remembe|
|00000150| 72 20 41 34 0d 09 45 6e | 74 65 72 43 6f 64 65 52 |r A4..En|terCodeR|
|00000160| 65 73 6f 75 72 63 65 28 | 29 3b 0d 09 0d 09 7b 0d |esource(|);....{.|
|00000170| 09 09 54 48 7a 09 09 09 | 09 09 73 61 76 65 64 5a |..THz...|..savedZ|
|00000180| 6f 6e 65 3b 0d 09 09 4f | 53 45 72 72 09 09 09 09 |one;...O|SErr....|
|00000190| 65 72 72 20 3d 20 6e 6f | 45 72 72 3b 0d 09 09 42 |err = no|Err;...B|
|000001a0| 6f 6f 6c 65 61 6e 09 09 | 09 09 63 61 6e 52 75 6e |oolean..|..canRun|
|000001b0| 20 3d 20 74 72 75 65 3b | 0d 09 09 48 61 6e 64 6c | = true;|...Handl|
|000001c0| 65 09 09 09 09 70 61 74 | 63 68 43 6f 64 65 48 20 |e....pat|chCodeH |
|000001d0| 3d 20 4e 55 4c 4c 3b 0d | 09 09 43 46 72 61 67 43 |= NULL;.|..CFragC|
|000001e0| 6f 6e 6e 65 63 74 69 6f | 6e 49 44 09 63 6f 6e 6e |onnectio|nID.conn|
|000001f0| 49 44 20 3d 20 30 3b 0d | 09 09 50 74 72 09 09 09 |ID = 0;.|..Ptr...|
|00000200| 09 09 73 79 6d 44 69 72 | 4e 61 6d 65 41 64 64 72 |..symDir|NameAddr|
|00000210| 20 3d 20 6e 69 6c 3b 0d | 09 09 0d 09 09 2f 2f 20 | = nil;.|.....// |
|00000220| 53 65 74 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |Set the |current |
|00000230| 68 65 61 70 20 74 6f 20 | 74 68 65 20 73 79 73 74 |heap to |the syst|
|00000240| 65 6d 20 68 65 61 70 0d | 09 09 73 61 76 65 64 5a |em heap.|..savedZ|
|00000250| 6f 6e 65 20 3d 20 47 65 | 74 5a 6f 6e 65 28 29 3b |one = Ge|tZone();|
|00000260| 0d 09 09 53 65 74 5a 6f | 6e 65 28 53 79 73 74 65 |...SetZo|ne(Syste|
|00000270| 6d 5a 6f 6e 65 28 29 29 | 3b 0d 09 09 0d 09 09 2f |mZone())|;....../|
|00000280| 2f 20 47 65 74 20 74 68 | 65 20 70 61 74 63 68 20 |/ Get th|e patch |
|00000290| 63 6f 64 65 20 61 6e 64 | 20 64 65 74 61 63 68 20 |code and| detach |
|000002a0| 69 74 0d 09 09 70 61 74 | 63 68 43 6f 64 65 48 20 |it...pat|chCodeH |
|000002b0| 3d 20 47 65 74 31 52 65 | 73 6f 75 72 63 65 28 09 |= Get1Re|source(.|
|000002c0| 6b 50 61 74 63 68 52 65 | 73 54 79 70 65 2c 0d 09 |kPatchRe|sType,..|
|000002d0| 09 09 09 09 09 09 09 09 | 6b 36 38 4b 50 61 74 63 |........|k68KPatc|
|000002e0| 68 52 65 73 49 44 29 3b | 0d 09 09 69 66 20 28 70 |hResID);|...if (p|
|000002f0| 61 74 63 68 43 6f 64 65 | 48 20 3d 3d 20 4e 55 4c |atchCode|H == NUL|
|00000300| 4c 29 20 7b 0d 09 09 09 | 63 61 6e 52 75 6e 20 3d |L) {....|canRun =|
|00000310| 20 66 61 6c 73 65 3b 0d | 09 09 7d 20 65 6c 73 65 | false;.|..} else|
|00000320| 20 7b 0d 09 09 09 2f 2f | 20 47 65 74 20 70 6f 69 | {....//| Get poi|
|00000330| 6e 74 65 72 73 20 66 72 | 6f 6d 20 63 6f 64 65 20 |nters fr|om code |
|00000340| 72 65 73 6f 75 72 63 65 | 20 69 66 20 77 65 20 61 |resource| if we a|
|00000350| 72 65 20 6f 6e 20 61 20 | 36 38 4b 0d 09 09 09 4a |re on a |68K....J|
|00000360| 69 6d 69 49 6e 69 74 50 | 72 6f 63 50 74 72 09 4a |imiInitP|rocPtr.J|
|00000370| 69 6d 69 49 6e 69 74 20 | 3d 20 28 4a 69 6d 69 49 |imiInit |= (JimiI|
|00000380| 6e 69 74 50 72 6f 63 50 | 74 72 29 20 2a 70 61 74 |nitProcP|tr) *pat|
|00000390| 63 68 43 6f 64 65 48 3b | 0d 09 09 09 0d 09 09 09 |chCodeH;|........|
|000003a0| 4a 69 6d 69 49 6e 69 74 | 28 70 61 74 63 68 43 6f |JimiInit|(patchCo|
|000003b0| 64 65 48 29 3b 0d 09 09 | 7d 0d 09 09 0d 09 09 2f |deH);...|}....../|
|000003c0| 2f 20 52 65 73 74 6f 72 | 65 20 74 68 65 20 70 72 |/ Restor|e the pr|
|000003d0| 65 76 69 6f 75 73 20 68 | 65 61 70 0d 09 09 53 65 |evious h|eap...Se|
|000003e0| 74 5a 6f 6e 65 28 73 61 | 76 65 64 5a 6f 6e 65 29 |tZone(sa|vedZone)|
|000003f0| 3b 0d 09 7d 0d 09 0d 09 | 2f 2f 20 52 65 73 74 6f |;..}....|// Resto|
|00000400| 72 65 20 41 34 0d 09 45 | 78 69 74 43 6f 64 65 52 |re A4..E|xitCodeR|
|00000410| 65 73 6f 75 72 63 65 28 | 29 3b 0d 7d 0d 00 00 00 |esource(|);.}....|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 5a | 00 00 00 5a 00 00 00 52 |.......Z|...Z...R|
|00000490| 0c 55 6b 72 61 69 6e 69 | 61 6e 3d 34 35 43 41 53 |.Ukraini|an=45CAS|
|000004a0| 45 0f 42 79 65 6c 6f 72 | 75 73 73 69 61 6e 3d 34 |E.Byelor|ussian=4|
|000004b0| 06 69 6e 69 74 2e 63 69 | 02 00 02 00 54 45 58 54 |.init.ci|....TEXT|
|000004c0| 43 57 49 45 01 00 00 00 | 00 00 00 00 00 00 51 fd |CWIE....|......Q.|
|000004d0| 02 00 54 45 58 54 43 57 | 49 45 01 00 00 00 00 00 |..TEXTCW|IE......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 ad d0 80 a5 00 00 | 03 9d 00 00 01 ac 61 6e |........|......an|
|00000500| 3d 35 31 43 41 53 45 0b | 47 65 6f 72 67 69 61 6e |=51CASE.|Georgian|
|00000510| 3d 35 32 43 41 53 45 0c | 4d 6f 6c 64 61 76 69 61 |=52CASE.|Moldavia|
|00000520| 6e 3d 35 33 43 41 53 45 | 0a 4b 69 72 67 68 69 7a |n=53CASE|.Kirghiz|
|00000530| 3d 35 34 43 41 53 45 09 | 54 61 6a 69 6b 69 3d 35 |=54CASE.|Tajiki=5|
|00000540| 35 43 41 53 45 0a 54 75 | 72 6b 6d 65 6e 3d 35 36 |5CASE.Tu|rkmen=56|
|00000550| 43 41 53 45 0c 4d 6f 6e | 67 6f 6c 69 61 6e 3d 35 |CASE.Mon|golian=5|
|00000560| 37 43 41 53 45 0f 4d 6f | 6e 67 6f 6c 69 61 6e 43 |7CASE.Mo|ngolianC|
|00000570| 79 72 3d 35 38 43 41 53 | 45 09 50 61 73 68 74 6f |yr=58CAS|E.Pashto|
|00000580| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 03 | 00 04 00 2d 00 90 02 41 |........|...-...A|
|000005b0| 02 e6 00 2d 00 90 02 41 | 02 e6 af d9 97 28 00 00 |...-...A|.....(..|
|000005c0| 02 84 00 00 02 84 00 00 | 00 63 01 00 00 00 00 02 |........|.c......|
|000005d0| 00 00 00 00 00 04 00 01 | 00 01 00 00 01 00 00 00 |........|........|
|000005e0| 01 5a 00 00 00 5a 00 00 | 00 52 02 45 32 80 22 e4 |.Z...Z..|.R.E2.".|
|000005f0| 00 00 00 1c 00 52 00 01 | 4d 50 53 52 00 01 00 12 |.....R..|MPSR....|
|00000600| 4d 57 42 42 00 00 00 2a | 03 ed ff ff 00 00 00 00 |MWBB...*|........|
|00000610| 00 00 00 00 03 ef ff ff | 00 00 00 4c 00 00 00 00 |........|...L....|
|00000620| 03 f0 ff ff 00 00 00 52 | 00 00 00 00 00 00 00 00 |.......R|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+